home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Plus SuperCD (UK) 1998 August
/
PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso
/
trial
/
demon
/
TURNPIKE.1
/
CLASSES.ZIP
/
sun
/
MISC
/
ConditionLock.class
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Class File
|
1997-04-14
|
522 b
|
26 lines
package sun.misc;
public final class ConditionLock extends Lock {
private int state;
public ConditionLock() {
}
public ConditionLock(int var1) {
this.state = var1;
}
public synchronized void lockWhen(int var1) throws InterruptedException {
while(this.state != var1) {
this.wait();
}
((Lock)this).lock();
}
public synchronized void unlockWith(int var1) {
this.state = var1;
((Lock)this).unlock();
}
}